package com.lovenote.common.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.base.common.dao.IBaseDao;
import com.base.common.service.impl.BaseServiceImpl;
import com.lovenote.common.dao.IPrivateMessageDao;
import com.lovenote.common.pojo.PrivateMessage;
import com.lovenote.common.service.IPrivateMessageService;

@Service("privateMessageService")
public class PrivateMessageServiceImpl extends BaseServiceImpl<PrivateMessage, Long> implements IPrivateMessageService {
	
	private IPrivateMessageDao privateMessageDao;
	
	@Autowired
	@Qualifier("privateMessageDao")
	@Override
	public void setBaseDao(IBaseDao<PrivateMessage, Long> baseDao) {
		this.baseDao = baseDao;
		this.privateMessageDao = (IPrivateMessageDao) baseDao;
	}

}
